package com.wangrui.us3.cos;

import com.qcloud.cos.COSClient;
import com.qcloud.cos.model.Bucket;

import java.util.List;

public class BucketTest {
    public static void main(String[] args) {
        COSClient cosClient = CosUtil.getClient();
        List<Bucket> buckets = cosClient.listBuckets();
        for (Bucket bucket : buckets) {
            System.out.println(" - " + bucket.getName() + " " + bucket.getType());
        }
    }
}
